home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 48
/
Amiga Format CD48 (1999-12-13)(Future Publishing)(GB)(Track 1 of 2)[!][issue 2000-01].iso
/
-screenplay-
/
hd_installers
/
whd_installers
/
games_s-t
/
turrican.lha
/
Turrican
/
Install
next >
Wrap
Text File
|
1998-06-24
|
3KB
|
134 lines
;****************************
(set #readme-file "README") ;name of readme file
(set #cleanup "install.slave") ;files to delete after install
;****************************
;----------------------------
; Checks if given program is reachable via the path
; if not abort install
; IN: #program - to check
; OUT: -
(procedure P_chkrun
(if
(= 0 (run ("cd SYS:\nWhich %s" #program)))
("")
(abort ("You must install \"%s\" first !\nIt must be accessible via the path.\nYou can find it in the whdload package." #program))
)
)
;****************************
(if
(exists #readme-file)
(if
(= 0 (run ("SYS:Utilities/Multiview %s" #readme-file)))
("")
(run ("SYS:Utilities/More %s" #readme-file))
)
)
(set #program "WHDLoad")
(P_chkrun)
(set #program "DIC")
(P_chkrun)
(set @default-dest
(askdir
(prompt ("Where should \"%s\" installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
(help @askdir-help)
(default "RAM:")
(disk)
)
)
(set #dest (tackon @default-dest @app-name))
(if
(exists #dest)
(
(set #choice
(askbool
(prompt ("\nDirectory \"%s\" already exists.\n Should it be deleted ?" #dest))
(default 1)
(choices "Delete" "Skip")
(help @askbool-help)
)
)
(if
(= #choice 1)
(run ("Delete \"%s\" \"%s.info\" All" #dest #dest))
)
)
)
(makedir #dest
(help @makedir-help)
(infos)
)
;----------------------------
(makedir
(tackon #dest "data")
(help @makedir-help)
)
(copyfiles
(help @copyfiles-help)
(source ("%s.slave" @app-name))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source "install.slave")
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("%s.inf" @app-name ))
(newname ("%s.info" @app-name ))
(dest #dest)
)
(if
(exists #readme-file)
(copyfiles
(help @copyfiles-help)
(source #readme-file)
(dest #dest)
)
)
(select
(askchoice
(prompt "Which version of Turrican do you have ?")
(choices "Rainbow Arts / Innerprise" "AmigaFun")
(help @askchoice-help)
)
(
(run ("cd \"%s\"\nwhdload install.slave WriteDelay=50" #dest))
(if
(exists (tackon #dest "data/70"))
("")
(abort "The Install was unable to create all nesseccary files !")
)
)
(
(message "\nInsert your \"Turrican\" Disk into drive DF0: !\n\n(make sure it's the right disk because it will not checked)")
(if
(= 0
(run ("cd \"%s/data\"\nDIC DF0: FD=1 LD=1 >CON:///1000//CLOSE" #dest))
)
("")
(abort "\"DIC\" has failed to create a diskimage")
)
)
)
;----------------------------
(run ("cd %s\nDelete %s ALL QUIET FORCE" #dest #cleanup))
(exit)